<div>
	<div class="txHead">
		<div class="txF">
			<img src="" ng-src="{{infoList.icon || 'img/timg.png'}}" class="tx" id="tx" />
		
			<!--<p><i class="layui-icon">&#xe642;</i></p>-->
		</div>
		<p>{{mtLogin}}</p>
		<button class="bd" id="bangNew" ng-show="login">绑定新账号</button>

		<button style="margin-left: 22px;background: #2b92d9;" onclick="goChangeInfoPass()" ng-show="login">更改密码</button>
		<button style="margin-left: 5px;background: #45d686;" ng-click="changeAccount()" ng-show="login">切换账号</button>

	</div>

	<ul>

		<li class="active">
			<a href="#/follow/list"><i class="layui-icon">&#xe68e;</i>大牛列表</a>
		</li>
		<!--ng-if="waite"-->
		<li ng-show="waite">
			<a href="#/follow/info"><i class="layui-icon">&#xe612;</i>我的订单</a>
		</li>

		<li ng-show="login">
			<a href="###" onclick="out()"><i class="layui-icon">&#xe628;</i>退出当前登录</a>
		</li>
	</ul>
</div>
<!--选择通道-->
<div id="chooseLevel" style="height: 577px;display: none;">
	<h3 style="margin-top: 60px;">选择通道进入系统</h3>
	<div class="wrap" style="width: 400px;margin: 30px auto;margin-bottom: 0;">
		<div class="layui-row">
			<div class="layui-col-md6 layui-col-xs6">
				<img src="img/Selectionchannel_Agreatman.png" />
				<h4>我是大牛</h4>
				<p>轻松赚钱来找我吧</p>
				<div class="chooseYes choose">
					<img src="img/gou.png" />
				</div>
			</div>
			<div class="layui-col-md6 layui-col-xs6">
				<img src="img/Selectionchannel_Follower.png" />
				<h4>我是跟随者</h4>
				<p>寻找带我赚钱的牛人</p>
				<div class="chooseNo choose">
					<img src="img/gou2.png" />
				</div>
			</div>

		</div>
		<button id="sure">确定</button>
	</div>

</div>
<!--绑定-->
<div id="binding" style="height: 637px;display: none;">
	<h3 style="padding: 0;">绑定申请</h3>
	<div class="wrap">
		<div class="innerBox">
			<label>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
			<input type="text" placeholder="请输入您的MT5真实账户" id="zh" />
		</div>
	
		<div class="innerBox">
			<label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
			<input type="password" placeholder="请输入您的MT5密码" id="pwd" />
		</div>
		<div class="innerBox">
			<label>手机号码</label>
			<input type="text" placeholder="请您的手机号码" id="phone" />
		</div>
		<div class="innerBox" style="display: none;" id="bigHasName">
			<label>信号源名称</label>
			<input type="text" placeholder="请输入十个字以下" id="shopName" />
		</div>
	
		<div class="warning">
			<p>注意事项:</p>
			<br />
			<p>1.提交绑定信息后，我们的客户服务人员核对后将与您取得联系，请确保您预留的联系方式正确。</p>
			<p>2.如果您尚未注册MT5账号，请与客服人员取得联系。</p>
			<p>3.在使用微信跟单系统前，应确认已熟知微信跟单系统的各项操作原理，跟单及平仓操作属于个人行为，与所属平台商无关。</p>
			<p>4.客户在使用微信跟单系统时，应仔细阅读信号源详情中的跟单规则和提示，了解开仓和平仓规则，谨慎选择适合自身投资能力和风险承受能力的信号源。</p>
			<p>5.BeraringFX负责提供微信跟单系统且无偿为客户提供跟单社区问题交流及处理服务，客户需谨慎选择信号源，跟单盈亏自负，与BeraringFX无关。</p>
			
			<div class="layui-row">

				<div class="layui-col-md6 layui-col-xs6">
					<button class="sure" ng-click="sureBang()">确认</button>
				</div>
				<div class="layui-col-md6 layui-col-xs6">
					<button class="cansel" id="cel">取消</button>

				</div>
			</div>

		</div>

	</div>

</div>
<!--更改密码-->
<div id="changePass">
	<div class="layui-form-item">
		<label class="layui-form-label">原密码：</label>
		<div class="layui-input-block">
			<input type="password" name="title" required lay-verify="required" placeholder="请输入原密码" autocomplete="off" class="layui-input" id="changepassword1">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">新密码：</label>
		<div class="layui-input-block">
			<input type="password" name="title" required lay-verify="required" placeholder="请输入新密码" autocomplete="off" class="layui-input" id="changepassword2">
		</div>
	</div>
	<button class="layui-btn layui-btn-normal" style="height: 38px;" ng-click="changePass()">修改</button>
</div>
<!--切换账号-->
<div id="changeId" style="display: none;">
	<div class="accountList clearfix">
		<div class="layui-row" ng-repeat="x in accountList" ng-click="changeState(x.mtLogin,x.state,x.type,x.updateTime,accountList.updateTimeOld)">
			<div class="layui-col-md4 layui-col-xs4">
				<p>{{x.mtLogin}}</p>
			</div>
			<div class="layui-col-md5 layui-col-xs5">
				<p class="blue" ng-if="x.state=='0'">(审核通过)</p>
				<p class="red" ng-if="x.state=='2'">(审核失败)</p>
				<p class="green" ng-if="x.state=='1'">(正在审核)</p>

			</div>
			<div class="layui-col-md3 layui-col-xs3">
				<div class="chooseYes choose" ng-if="x.status==1">
					<img src="img/gou.png" />
				</div>
			</div>
		</div>
	</div>
	<!--<button class="layui-btn" id="bangNew">绑定账号</button>-->
</div>
<script>
	//	alertNew("切换账号", 290, 500, $("#changeId"));

	function goChangeInfoPass() {
		alertNew("更改密码", 400, 267, $("#changePass"));

	}
	$("ul li").each(function() {
		$(this).click(function() {
			$(this).addClass("active");
			$(this).siblings().removeClass("active");
		})

	})

	$("#bangNew").click(function() {
		alertNew("选择通道进入系统", 567, 680, $("#chooseLevel"))
	})

	//退出登录

	function out() {
		$.ajax({
			type: "get",
			url: "/wechat_mt5/user/logout",
			success: function(data) {
				if(data.code == 0) {
					window.location.href = "#/";

				}
			}

		})
	}
	$(".choose").click(function() {
		$(this).addClass("chooseYes");
		$(this).children("img").attr("src", "img/gou.png");
		$(this).parent().siblings().children(".choose").removeClass("chooseYes");
		$(this).parent().siblings().children(".choose").addClass("chooseNo");
		$(this).parent().siblings().children(".choose").children("img").attr("src", "img/gou2.png");
	})
	$("#sure").click(function() {

		if($(".chooseYes").siblings("h4").html().indexOf("我是大牛") != -1) {
			$("#bigHasName").show();
		} else {
			$("#bigHasName").hide();

		}

		closeThis();
		alertNew("绑定申请", 567, 730, $("#binding"))
	})

	$('#cel').click(function() {
			closeThis();
			alertNew("选择通道进入系统", 567, 680, $("#chooseLevel"))
		})
	var bol = true;

	$('#getCodeBtn').click(function() {
		if($('#pass').val() == "") {
			$('#pass').val("邮箱不能为空");
			$('#pass').css("color", "red");

		} else if(emailGe($('#pass').val()) == false) {
			return false;
		} else {

			bol = setTime($('#pass').val(), $('#getCodeBtn'), bol,'/wechat_mt5/mt/user/binding/mt/send/mail','get');

		}
	})
</script>